
import {lazy} from 'react'
import { Navigate } from 'react-router-dom'
import UserList from './userList/userList'
import BookListRoutes from './bookList/routes'
import UserListRoutes from './userList/routes'
import AnnoListRoutes from './annoList/routes'
const Main = lazy(()=>import('./main'))

export default [
    {
        path:"/home/main",
        element:<Main></Main>,
        children:[
            {
                path:"/home/main",
                element:<Navigate replace to='/home/main/bookList'></Navigate>
            }, 
            ...BookListRoutes,
            ...UserListRoutes,
            ...AnnoListRoutes
        ]
    }
]